/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package view;
import javax.swing.*;
import java.awt.*;
/**
 *
 * @author zhaoyingxi
 */
public class Register {
public static void main (String[] args){
        JFrame frame2 = new JFrame();
        JButton button1 = new JButton("Register");
        JButton button2 = new JButton("Return Menu");
        frame2.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        frame2.setSize(320,170);
        frame2.setVisible(true);

        frame2.setBackground(Color.LIGHT_GRAY);
        frame2.setLocation(300, 260);
        frame2.setLayout(new FlowLayout());
        frame2.add(new Label("User Name:"));
        frame2.add(new TextField(20));
        frame2.add(new Label("Password:"));
        frame2.add(new TextField(20));
        frame2.add(new Label("Repeat Password:"));
        frame2.add(new TextField(20));
        frame2.add(new Label("Name:"));
        frame2.add(new TextField(20));
        frame2.add(new Label("E-mail:"));
        frame2.add(new TextField(20));
        frame2.add(new Label("Cellphone:"));
        frame2.add(new TextField(20));
        frame2.add(new Label("Address:"));
        frame2.add(new TextField(20));
        frame2.getContentPane().add(BorderLayout.SOUTH,button1);
        frame2.getContentPane().add(BorderLayout.SOUTH,button2);


       frame2.setVisible(true);
    }
    }
